import * as type from "./type"

let mulations = {
    [type.Recommend](state,action){
        
        state.RecommendHeader = action.payload[0];
        state.RecommendMain = action.payload[1].globalGoodsItemList;
        state.RecommendLists = action.payload[1].globalGoodsItemList;
       
    },
    [type.RecommendMore](state,action){
        // console.log(action.payload[1].globalGoodsItemList)
        
        state.RecommendMain.push(...action.payload[1].globalGoodsItemList);
    }
}

export default mulations;
